Micron Document
🎖️GitЯра🎖️

Node / meshtastic / Meshtastic-Android / files / androidApp / src / test / kotlin / org / meshtastic / app / ui / NavigationAssemblyTest.kt

Displaying Raw • Download

androidApp/src/test/kotlin/org/meshtastic/app/ui/NavigationAssemblyTest.kt b5152d14a0ddb93ff2daff6ddb57cbd47dacc2cd (b5152d14) Text, 2.99 KB

T8b949e/*
* Copyright (c) 2026 Meshtastic LLC
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
Tff7b72package T7ee787org.meshtastic.app.ui

Tff7b72import T7ee787androidx.compose.ui.test.ExperimentalTestApi
Tff7b72import T7ee787androidx.compose.ui.test.v2.runComposeUiTest
Tff7b72import T7ee787androidx.navigation3.runtime.NavKey
Tff7b72import T7ee787androidx.navigation3.runtime.entryProvider
Tff7b72import T7ee787androidx.navigation3.runtime.rememberNavBackStack
Tff7b72import T7ee787kotlinx.coroutines.flow.emptyFlow
Tff7b72import T7ee787org.junit.Test
Tff7b72import T7ee787org.junit.runner.RunWith
Tff7b72import T7ee787org.meshtastic.core.navigation.NodesRoute
Tff7b72import T7ee787org.meshtastic.feature.connections.navigation.connectionsGraph
Tff7b72import T7ee787org.meshtastic.feature.discovery.navigation.discoveryGraph
Tff7b72import T7ee787org.meshtastic.feature.firmware.navigation.firmwareGraph
Tff7b72import T7ee787org.meshtastic.feature.map.navigation.mapGraph
Tff7b72import T7ee787org.meshtastic.feature.messaging.navigation.contactsGraph
Tff7b72import T7ee787org.meshtastic.feature.node.navigation.nodesGraph
Tff7b72import T7ee787org.meshtastic.feature.settings.navigation.settingsGraph
Tff7b72import T7ee787org.meshtastic.feature.settings.radio.channel.channelsGraph
Tff7b72import T7ee787org.robolectric.RobolectricTestRunner
Tff7b72import T7ee787org.robolectric.annotation.Config

T8b949e// Graph assembly only builds entry providers, so a bare Application is enough. Booting
T8b949e// MeshUtilApplication here leaks its applicationScope launches into the rest of the fork.
Tf0883e@OptInTb4b4b4(Te6edf3ExperimentalTestApiTff7b72::Te6edf3classTb4b4b4)
Tf0883e@RunWithTb4b4b4(Te6edf3RobolectricTestRunnerTff7b72::Te6edf3classTb4b4b4)
Tf0883e@ConfigTb4b4b4(Te6edf3sdk Tff7b72= Tff7b72[T79c0ff3T79c0ff4Tff7b72]Tb4b4b4, Te6edf3application Tff7b72= Te6edf3androidTb4b4b4.Te6edf3appTb4b4b4.Te6edf3ApplicationTff7b72::Te6edf3classTb4b4b4)
Tff7b72class T56d364NavigationAssemblyTest Tb4b4b4{

Tf0883e@Test
Tff7b72fun Td2a8ffverifyNavigationGraphsAssembleWithoutCrashingTb4b4b4(Tb4b4b4) Tff7b72= Te6edf3runComposeUiTest Tb4b4b4{
Te6edf3setContent Tb4b4b4{
Tff7b72val Te6edf3backStack Tff7b72= Te6edf3rememberNavBackStackTb4b4b4(Te6edf3NodesRouteTb4b4b4.Te6edf3NodesTb4b4b4)
Te6edf3entryProviderTff7b72<Te6edf3NavKeyTff7b72> Tb4b4b4{
T8b949e// contactsGraph.onHandleDeepLink is intentionally mandatory (see contactsGraph kdoc);
T8b949e// tests don't run imports, so a no-op handler is sufficient here.
Te6edf3contactsGraphTb4b4b4(Te6edf3backStackTb4b4b4, Te6edf3emptyFlowTb4b4b4(Tb4b4b4)Tb4b4b4, Te6edf3onHandleDeepLink Tff7b72= Tb4b4b4{ Te6edf3_Tb4b4b4, Te6edf3_ Tff7b72-Tff7b72> Tb4b4b4}Tb4b4b4)
Te6edf3nodesGraphTb4b4b4(Te6edf3backStack Tff7b72= Te6edf3backStackTb4b4b4, Te6edf3scrollToTopEvents Tff7b72= Te6edf3emptyFlowTb4b4b4(Tb4b4b4)Tb4b4b4)
Te6edf3mapGraphTb4b4b4(Te6edf3backStackTb4b4b4)
Te6edf3channelsGraphTb4b4b4(Te6edf3backStackTb4b4b4)
Te6edf3connectionsGraphTb4b4b4(Te6edf3backStackTb4b4b4)
Te6edf3discoveryGraphTb4b4b4(Te6edf3backStackTb4b4b4)
Te6edf3settingsGraphTb4b4b4(Te6edf3backStackTb4b4b4) Tb4b4b4{ Te6edf3_ Tff7b72-Tff7b72> Te6edf3errorTb4b4b4(Ta5d6ff"Ta5d6ffSettings ViewModel is not composed in this assembly testTa5d6ff"Tb4b4b4) Tb4b4b4}
Te6edf3firmwareGraphTb4b4b4(Te6edf3backStackTb4b4b4)
Tb4b4b4}
Tb4b4b4}
Tb4b4b4}
Tb4b4b4}

Served by rngit 1.4.2 - Generated in 0.06s